package com.tgky.ybzb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tgky.ybzb.entity.result.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * (FileUpload)实体类
 *
 * @author makejava
 * @since 2024-09-02 10:10:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="上传文件表", description="上传文件表")
@TableName("file_info")
public class FileInfo extends BaseEntity {
    /**
     * 文件表主键
     */
    @ApiModelProperty(value = "主键id", position = 0)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 文件名
     */
    @TableField("file_name")
    @ApiModelProperty(value = "文件名称", position = 1)
    private String fileName;
    /**
     * 文件路径
     */
    @TableField("file_path")
    @ApiModelProperty(value = "文件路径", position = 2)
    private String filePath;
    /**
     * 关联表类型
     */
    @TableField("type")
    @ApiModelProperty(value = "文件类型", position = 3)
    private String type;
    /**
     * 关联的表的id
     */
    @TableField("table_id")
    @ApiModelProperty(value = "关联文件的表id", position = 4)
    private Integer tableId;


}

